import request from '@/utils/request'

export const scheduleApi = {
  getEvents(params) {
    return request.get('/api/events', { params })
  },

  createEvent(data) {
    return request.post('/api/events', data)
  },

  updateEvent(id, data) {
    return request.put(`/api/events/${id}`, data)
  },

  deleteEvent(id) {
    return request.delete(`/api/events/${id}`)
  }
} 